{template 'web/_header'}
{template 'tabs'}
<form id="setform"  action="" method="post" class="form-horizontal form">
    <div class='panel panel-default'>
           <div class='panel-heading'>
            分销等级设置
        </div>
        <div class='panel-body'>

            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分销层级</label>
                <div class="col-sm-4">
                    <select  class="form-control" name="setdata[level]">
                        <option value="0" {if empty($set['level'])}selected{/if}>不开启分销机制</option>
                        <option value="1" {if $set['level']==1}selected{/if}>一级分销</option>
                        <option value="2" {if $set['level']==2}selected{/if} >二级分销</option>
                        <option value="3" {if $set['level']==3}selected{/if} >三级分销</option>
                    </select>
                </div>
            </div> 
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">默认分销佣金比例</label>
                <div class="col-sm-4">
                    <div class="input-group">
                        <div class="input-group-addon">一级</div>
                        <input type="text" name="setdata[commission1]" class="form-control" value="{$set['commission1']}"  />
                        <div class="input-group-addon">%</div>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                <div class="col-sm-4">
                    <div class="input-group">
                        <div class="input-group-addon">二级</div>
                        <input type="text" name="setdata[commission2]" class="form-control" value="{$set['commission2']}"  />
                        <div class="input-group-addon">%</div>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                <div class="col-sm-4">
                    <div class="input-group">
                        <div class="input-group-addon">三级</div>
                        <input type="text" name="setdata[commission3]" class="form-control" value="{$set['commission3']}"  />
                        <div class="input-group-addon">%</div>
                    </div>
                  <span class='help-block'>新加入的分销商（默认等级），采用此默认比例</span>
		<span class='help-block'>分销佣金计算优先级： 商品固定佣金比例 > 分销商等级佣金比例 >默认佣金比例</span>
                </div>
            </div>
             <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分销内购</label>
                <div class="col-sm-9 col-xs-12">
                     <label class="radio-inline"><input type="radio"  name="setdata[selfbuy]" value="0" {if $set['selfbuy'] ==0} checked="checked"{/if} /> 关闭</label>
                    <label class="radio-inline"><input type="radio"  name="setdata[selfbuy]" value="1" {if $set['selfbuy'] ==1} checked="checked"{/if} /> 开启</label>
                    <span class='help-block'>开启分销内购，分销商自己购买商品，享受一级佣金，上级享受二级佣金，上上级享受三级佣金</span>
                </div>
            </div>
            
        </div>
        <div class='panel-heading'>
            分销设置
        </div>
        <div class='panel-body'>
           <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">成为下线条件</label>
                <div class="col-sm-9 col-xs-12">
                    <label class="radio-inline"><input type="radio"  name="setdata[become_child]" value="0" {if $set['become_child'] ==0} checked="checked"{/if} /> 首次点击分享连接</label>
                    <label class="radio-inline"><input type="radio"  name="setdata[become_child]" value="1" {if $set['become_child'] ==1} checked="checked"{/if} /> 首次下单</label>
                    <label class="radio-inline"><input type="radio"  name="setdata[become_child]" value="2" {if $set['become_child'] ==2} checked="checked"{/if} /> 首次付款</label>
                    <span class='help-block'>首次点击分享连接： 可以自由设置分销商条件</span>
                    <span class='help-block'>首次下单/首次付款： 无条件不可用</span>
                </div>
               </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">成为分销商条件</label>
                <div class="col-sm-9 col-xs-12">
                    <label class="radio-inline"><input type="radio"  name="setdata[become]" value="0" {if $set['become'] ==0} checked="checked"{/if} /> 无条件</label>
                </div> 
            </div>
            <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-6">
                         <label class="radio-inline"><input type="radio"  name="setdata[become]" value="1" {if $set['become'] ==1} checked="checked"{/if} /> 申请</label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-6">
                         <div class='input-group' style='border:none;margin-left:-12px;'>
                            <div class='input-group-addon'  style='border:none;background:#fff;'><label class="radio-inline" style='margin-top:-3px;'><input type="radio"  name="setdata[become]" value="2" {if $set['become'] == 2} checked="checked"{/if} /> 消费达到</label></div>
                            <input type='text' class='form-control' name='setdata[become_ordercount]' value="{$set['become_ordercount']}" />
                            <div class='input-group-addon'  style='border:none;background:#fff;'>次</div>
                        </div>
                    </div>
                </div>
      

                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-6">
                          <div class='input-group' style='border:none;margin-left:-12px;'>
                            <div class='input-group-addon'  style='border:none;background:#fff;'><label class="radio-inline" style='margin-top:-3px;'><input type="radio"  name="setdata[become]" value="3" {if $set['become'] == 3} checked="checked"{/if} /> 消费达到</label></div>
                            <input type='text' class='form-control' name='setdata[become_moneycount]' value="{$set['become_moneycount']}" />
                            <div class='input-group-addon'  style='border:none;background:#fff;'>元</div>
                        </div>
                    </div>
                </div>
      <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                <div class="col-sm-9 col-xs-12">
                    <label class="radio-inline"><input type="radio"  name="setdata[become_order]" value="0" {if $set['become_order'] ==0} checked="checked"{/if} /> 付款后</label>
                    <label class="radio-inline"><input type="radio"  name="setdata[become_order]" value="1" {if $set['become_order'] ==1} checked="checked"{/if} /> 完成后</label>
                    <span class="help-block">消费条件统计的方式</span>
                </div>
           </div>
           <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分销商必须完善资料</label>
                <div class="col-sm-9 col-xs-12">
                    <label class="radio-inline"><input type="radio"  name="setdata[become_reg]" value="0" {if $set['become_reg'] ==0} checked="checked"{/if} /> 需要</label>
                    <label class="radio-inline"><input type="radio"  name="setdata[become_reg]" value="1" {if $set['become_reg'] ==1} checked="checked"{/if} /> 不需要</label>
                    <span class="help-block">分销商在分销或提现时是否必须完善资料</span>
                </div>
           </div>
           <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">成为分销商是否需要审核</label>
                <div class="col-sm-9 col-xs-12">
                    <label class="radio-inline"><input type="radio"  name="setdata[become_check]" value="0" {if $set['become_check'] ==0} checked="checked"{/if} /> 需要</label>
                    <label class="radio-inline"><input type="radio"  name="setdata[become_check]" value="1" {if $set['become_check'] ==1} checked="checked"{/if} /> 不需要</label>
                    <span class="help-block">以上条件达到后，是否需要审核才能成为真正的分销商</span>
                </div>
           </div>
            
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">提现额度</label>
                <div class="col-sm-9 col-xs-12">
                    <input type="text" name="setdata[withdraw]" class="form-control" value="{$set['withdraw']}"  />
                    <span class="help-block">当前代理的佣金达到此额度时才能提现</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">开启提现到余额</label>
                <div class="col-sm-9 col-xs-12">
                    <label class="radio-inline"><input type="radio"  name="setdata[closetocredit]" value="0" {if $set['closetocredit'] ==0} checked="checked"{/if} /> 开启</label>
                    <label class="radio-inline"><input type="radio"  name="setdata[closetocredit]" value="1" {if $set['closetocredit'] ==1} checked="checked"{/if} /> 关闭</label>
                    <span class="help-block">是否允许用户佣金提现到余额，否则只允许微信提现</span>
                </div>
            </div>
               <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">结算天数</label>
                <div class="col-sm-9 col-xs-12">
                    <input type="text" name="setdata[settledays]" class="form-control" value="{$set['settledays']}"  />
                    <span class="help-block">当订单完成后的n天后，佣金才能申请提现</span>
                </div>
            </div>
           <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分销等级说明连接</label>
                <div class="col-sm-9 col-xs-12">
                    <input type="text" name="setdata[levelurl]" class="form-control" value="{$set['levelurl']}"  />
                    <span class="help-block">分销等级说明连接</span>
                </div>
            </div>
             <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分销商自选商品</label>
                <div class="col-sm-9 col-xs-12">
                    <label class="radio-inline"><input type="radio"  name="setdata[select_goods]" value="0" {if $set['select_goods'] ==0} checked="checked"{/if} /> 关闭</label>
                    <label class="radio-inline"><input type="radio"  name="setdata[select_goods]" value="1" {if $set['select_goods'] ==1} checked="checked"{/if} /> 开启</label>
                    <span class="help-block">是否允许分销商自己的小店选择自己推广的产品,如果开启自选后，要单独禁用某个分销商的自选权限，请到分销商管理中设置</span>
                </div> 
           </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">是否关闭"我的小店"功能</label>
                <div class="col-sm-9 col-xs-12">
                	<label class="radio-inline"><input type="radio"  name="setdata[closemyshop]" value="0" {if empty($set['closemyshop'])} checked="checked"{/if} /> 开启</label>
                    <label class="radio-inline"><input type="radio"  name="setdata[closemyshop]" value="1" {if $set['closemyshop'] ==1} checked="checked"{/if} /> 关闭</label>
                    
                    <span class="help-block">如果关闭小店功能, 则分享的店铺连接，进入店铺的连接全是总店</span>
                </div> 
           </div>
			
	 <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分销订单商品详情</label>
                <div class="col-sm-9 col-xs-12">
                	<label class="radio-inline"><input type="radio"  name="setdata[openorderdetail]" value="0" {if empty($set['openorderdetail'])} checked="checked"{/if} /> 关闭</label>
                    <label class="radio-inline"><input type="radio"  name="setdata[openorderdetail]" value="1" {if $set['openorderdetail'] ==1} checked="checked"{/if} /> 显示</label>
                    
                    <span class="help-block">分销中心分销订单是否显示商品详情</span>
                </div> 
           </div>
	   <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分销订单购买者详情</label>
                <div class="col-sm-9 col-xs-12">
                	<label class="radio-inline"><input type="radio"  name="setdata[openorderbuyer]" value="0" {if empty($set['openorderbuyer'])} checked="checked"{/if} /> 关闭</label>
                    <label class="radio-inline"><input type="radio"  name="setdata[openorderbuyer]" value="1" {if $set['openorderbuyer'] ==1} checked="checked"{/if} /> 显示</label>
                    
                    <span class="help-block">分销中心分销订单是否显示购买者</span>
                </div> 
           </div>
            
           
            
        </div>
 
	  <div class='panel-heading'>
            等级设置
        </div>
	<div class='panel-body'>
		  <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">默认级别名称</label>
                <div class="col-sm-9 col-xs-12">
                    <input type="text" name="setdata[levelname]" class="form-control" value="{php echo empty($set['levelname'])?'普通等级':$set['levelname']}"  />
                    <span class="help-block">分销商默认等级名称，不填写默认“普通等级”</span>
                </div>
            </div> 
		<div class='panel-body'>
		  <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分销商等级升级依据</label>
                <div class="col-sm-9 col-xs-12">
              
                        <label class="radio radio-inline" style="width:240px">
                              <input type="radio" name="setdata[leveltype]" value="0" {if empty($set['leveltype'])}checked{/if}/> 分销订单总额(完成的订单)
                        </label>
		    <label class="radio radio-inline" style="width:240px">
                              <input type="radio" name="setdata[leveltype]" value="1" {if $set['leveltype']==1}checked{/if}/> 一级分销订单金额(完成的订单)
                        </label>		<br/>
						
					
		   <label class="radio radio-inline" style="width:240px">
                              <input type="radio" name="setdata[leveltype]" value="2" {if $set['leveltype']==2}checked{/if}/> 分销订单总数(完成的订单)
                        </label>
						   <label class="radio radio-inline" style="width:240px">
                              <input type="radio" name="setdata[leveltype]" value="3" {if $set['leveltype']==3}checked{/if}/> 一级分销订单总数(完成的订单)
                        </label>
				<br /><br />	
		   <label class="radio radio-inline" style="width:240px">
                              <input type="radio" name="setdata[leveltype]" value="4" {if $set['leveltype']==4}checked{/if}/> 自购订单金额(完成的订单)
                        </label>		
						<label class="radio radio-inline" style="width:240px">
                              <input type="radio" name="setdata[leveltype]" value="5" {if $set['leveltype']==5}checked{/if}/> 自购订单数量(完成的订单)
                        </label>		
<br/>				
		   
		 <br />
	              <label class="radio radio-inline" style="width:240px">
                              <input type="radio" name="setdata[leveltype]" value="6" {if $set['leveltype']==6}checked{/if}/> 下线总人数（分销商+非分销商）
                        </label>		
		   <label class="radio radio-inline" style="width:240px">
                              <input type="radio" name="setdata[leveltype]" value="7" {if $set['leveltype']==7}checked{/if}/> 一级下线人数（分销商+非分销商）
                        </label> 
					<br />	
		   <label class="radio radio-inline" style="width:240px">
                              <input type="radio" name="setdata[leveltype]" value="8" {if $set['leveltype']==8}checked{/if}/> 下级分销商总人数
                        </label>		
		   <label class="radio radio-inline" style="width:240px">
                              <input type="radio" name="setdata[leveltype]" value="9" {if $set['leveltype']==9}checked{/if}/> 一级分销商人数
                        </label>
				<br /><br />
				 <label class="radio radio-inline" style="width:240px">
                              <input type="radio" name="setdata[leveltype]" value="10" {if $set['leveltype']==10}checked{/if}/> 已提现佣金总金额
                        </label>	
                        <span class="help-block">默认为分销订单总金额</span> 
                      
                </div>
            </div>
			
 </div> </div> 
	
        <div class='panel-heading'>
            样式设置
        </div>
        <div class='panel-body'>
             <div class="form-group">
        <label class="col-xs-12 col-sm-3 col-md-2 control-label">模板选择</label>
        <div class="col-sm-9 col-xs-12">
            <select class='form-control' name='setdata[style]'>
                {loop $styles  $style}
                <option value='{$style}' {if $style==$set['style']}selected{/if}>{$style}</option>
                {/loop}
            </select>
        </div>
    </div>
   
       
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">注册面头部图片</label>
                <div class="col-sm-9 col-xs-12">
                    {php echo tpl_form_field_image('setdata[regbg]',$set['regbg'],'../addons/sz_yi/plugin/commission/template/mobile/default/static/images/bg.png')}
                </div>
            </div>
      
        </div>
           <div class='panel-heading'>
            文字设置
        </div>
        <div class='panel-body'>
             <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                <div class="col-sm-9 col-xs-12">
                      <div class="input-group">
                        <div class="input-group-addon">按钮文字</div>
                        <input type="text" name="setdata[buttontext]" class="form-control" value="{php echo empty($set['buttontext'])?'我要分销':$set['buttontext']}"  />
                        <span class="input-group-addon">商品详情页面“我要分销”按钮文字,建议使用4个汉字</span>
                    </div>
                </div>
                </div>
              <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">分销商名称</div>
                            <input type="text" name="texts[agent]" class="form-control" value="{php echo empty($set['texts']['agent'])?'分销商':$set['texts']['agent']}"  />
                        </div>
                    </div>
              </div>
             <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">小店</div>
                            <input type="text" name="texts[shop]" class="form-control" value="{php echo empty($set['texts']['shop'])?'小店':$set['texts']['shop']}"  />
                        </div>
                    </div>
              </div>
              <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">我的小店</div>
                            <input type="text" name="texts[myshop]" class="form-control" value="{php echo empty($set['texts']['myshop'])?'我的小店':$set['texts']['myshop']}"  />
                        </div>
                    </div>
              </div>
            <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">分销中心</div>
                            <input type="text" name="texts[center]" class="form-control" value="{php echo empty($set['texts']['center'])?'分销中心':$set['texts']['center']}"  />
                        </div>
                    </div>
              </div>
              <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">成为分销商</div>
                            <input type="text" name="texts[become]" class="form-control" value="{php echo empty($set['texts']['become'])?'成为分销商':$set['texts']['become']}"  />
                        </div>
                    </div>
              </div>
             <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">提现</div>
                            <input type="text" name="texts[withdraw]" class="form-control" value="{php echo empty($set['texts']['withdraw'])?'提现':$set['texts']['withdraw']}"  />
                        </div>
                    </div>
              </div>
              <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">佣金</div>
                            <input type="text" name="texts[commission]" class="form-control" value="{php echo empty($set['texts']['commission'])?'佣金':$set['texts']['commission']}"  />
                        </div>
                    </div>
              </div>
              <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">分销佣金</div>
                            <input type="text" name="texts[commission1]" class="form-control" value="{php echo empty($set['texts']['commission1'])?'分销佣金':$set['texts']['commission1']}"  />
                        </div>
                    </div>
              </div>
             <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">累计佣金</div>
                            <input type="text" name="texts[commission_total]" class="form-control" value="{php echo empty($set['texts']['commission_total'])?'累计佣金':$set['texts']['commission_total']}"  />
                        </div>
                    </div>
              </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">可提现佣金</div>
                            <input type="text" name="texts[commission_ok]" class="form-control" value="{php echo empty($set['texts']['commission_ok'])?'可提现佣金':$set['texts']['commission_ok']}"  />
                        </div>
                    </div>
              </div>
              <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">已申请佣金</div>
                            <input type="text" name="texts[commission_apply]" class="form-control" value="{php echo empty($set['texts']['commission_apply'])?'已申请佣金':$set['texts']['commission_apply']}"  />
                        </div>
                    </div>
              </div>
               <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">待打款佣金</div>
                            <input type="text" name="texts[commission_check]" class="form-control" value="{php echo empty($set['texts']['commission_check'])?'待打款佣金':$set['texts']['commission_check']}"  />
                        </div>
                    </div>
              </div>
             <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">未结算佣金</div>
                            <input type="text" name="texts[commission_lock]" class="form-control" value="{php echo empty($set['texts']['commission_lock'])?'未结算佣金':$set['texts']['commission_lock']}"  />
                        </div>
                    </div>
              </div>
			<div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                           <div class="input-group-addon">成功提现佣金</div>
                            <input type="text" name="texts[commission_pay]" class="form-control" value="{php echo empty($set['texts']['commission_pay'])?'成功提现佣金':$set['texts']['commission_pay']}"  />
                        </div>
                    </div>
              </div>
              <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">佣金明细</div>
                            <input type="text" name="texts[commission_detail]" class="form-control" value="{php echo empty($set['texts']['commission_detail'])?'佣金明细':$set['texts']['commission_detail']}"  />
                        </div>
                    </div>
              </div>
               <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">分销订单</div>
                            <input type="text" name="texts[order]" class="form-control" value="{php echo empty($set['texts']['order'])?'佣金明细':$set['texts']['order']}"  />
                        </div>
                    </div>
              </div>
             <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">我的团队</div>
                            <input type="text" name="texts[myteam]" class="form-control" value="{php echo empty($set['texts']['myteam'])?'我的团队':$set['texts']['myteam']}"  />
                        </div>
                    </div>
              </div>
              
              <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">团队级别名称</div>
                            <input type="text" name="texts[c1]" class="form-control" value="{php echo empty($set['texts']['c1'])?'一级':$set['texts']['c1']}" style="width:100px;" />
                            <input type="text" name="texts[c2]" class="form-control" value="{php echo empty($set['texts']['c2'])?'二级':$set['texts']['c2']}" style="width:100px;" />
                            <input type="text" name="texts[c3]" class="form-control" value="{php echo empty($set['texts']['c3'])?'三级':$set['texts']['c3']}" style="width:100px;" />
                            
                        </div>
                    </div>
              </div>
              
               <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
                    <div class="col-sm-9 col-xs-12">
                          <div class="input-group">
                            <div class="input-group-addon">我的客户</div>
                            <input type="text" name="texts[mycustomer]" class="form-control" value="{php echo empty($set['texts']['mycustomer'])?'我的下线':$set['texts']['mycustomer']}"  />
                        </div>
                    </div>
              </div>
                  
            <div class="form-group"></div>
               <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
            <div class="col-sm-9">
                <input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" onclick='return formcheck()' />
                <input type="hidden" name="token" value="{$_W['token']}" />
            </div>
        </div>
   
        </div>
        
    </div>
</form>
<script language='javascript'>
    function formcheck(){
        var become_child =$(":radio[name='setdata[become_child]']:checked").val();
        if( become_child=='1'  || become_child=='2' ){
            if( $(":radio[name='setdata[become]']:checked").val() =='0'){
              alert('成为下线条件选择了首次下单/首次付款，成为分销商条件不能选择无条件!')   ;
              return false;
            }
        }
        return true;
    }
    </script>
{template 'web/_footer'}
